package com.qf.pkg.controller;

import com.qf.pkg.entity.Package;
import com.qf.pkg.service.PackageService;
import com.qf.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 租户套餐表 前端控制器
 * </p>
 *
 * @author 程序员
 * @since 2023-10-28
 */
@RestController
@CrossOrigin
@RequestMapping("/package")
public class PackageController {
    @Autowired
    private PackageService packageService;

    @PostMapping("/add")
    public R add(@RequestBody Package pck) {
        return packageService.add(pck);
    }


}
